package collectiondemo;

public class MainDemo6 {
    public static void main(String[] args) {
        java.util.List list = java.util.Arrays.asList("one Two three Four five six one three Four".split(" "));
        System.out.println("List :" + list);
        java.util.Collections.replaceAll(list, "one", "hundrea");
        System.out.println("replaceAll: " + list);
    }
}
